package FactoryMethod.example.idcard;

import FactoryMethod.example.framework.Product;

/**
 * @author zsh
 * @Description
 * @create 2022-05-11 20:25
 */
public class IDCard extends Product {

    private String owner;

    IDCard(String owner){
        System.out.println("制作"+ owner+ "卡片");
        this.owner = owner;
    }

    @Override
    public void use() {
        System.out.println("使用" + this.owner + "卡片");
    }

    public String getOwner() {
        return this.owner;
    }
}
